﻿namespace XYS.Core.Models
{
    /// <summary>
    /// 上传文件 入参
    /// </summary>
    public class FilePutRequest
    {
        /// <summary>
        /// 所在桶
        /// </summary>
        public string OssBucket { get; set; }
        /// <summary>
        /// OSS 文件路径
        /// </summary>
        public string OssFilePath { get; set; }
    }

    /// <summary>
    /// 上传文件 出参
    /// </summary>
    public class FilePutResult
    {
        /// <summary>
        /// 所在桶
        /// </summary>
        public string OssBucket { get; set; }
        /// <summary>
        /// OSS 文件路径
        /// </summary>
        public string OssFileFullPath { get; set; }
        /// <summary>
        /// 文件大小
        /// </summary>
        public long OssFileSize { get; set; } = 0;
        /// <summary>
        /// 文件MD5
        /// </summary>
        public string FileMD5 { get; set; }
    }


    /// <summary>
    /// 创建软链 入参
    /// </summary>
    public class GeneratePresignedUriReq
    {
        /// <summary>
        /// 所在桶
        /// </summary>
        public string OssBucket { get; set; }

        /// <summary>
        /// OSS 文件路径
        /// </summary>
        public string OssFileFullPath { get; set; }
        /// <summary>
        /// 设置访问权限
        /// </summary>
        public Aliyun.OSS.CannedAccessControlList? ACL { get; set; }
    }

    /// <summary>
    /// 下载文件 入参
    /// </summary>
    public class FileDownLoadRequest
    {
        /// <summary>
        /// 所在桶
        /// </summary>
        public string OssBucket { get; set; }
        /// <summary>
        /// OSS 文件路径
        /// </summary>
        public string OssFilePath { get; set; }
    }

}
